<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ext4yii xmlns:ext="http://www.w3.org/1999/xhtml" xmlns:prop="http://www.w3.org/1999/xhtml"/>
<prop:Actions>
    <ext:ClientAction onevent="show">
        <prop:Handler>
            <script>
                function()
                {
                    employeeEditorForm.getForm().reset();
                    var btnCmd = this.buttons[1];
                    if(this.mode == 'edit')
                    {
                        btnCmd.setText('Save');
                    }
                    else
                    {
                        btnCmd.setText('Create');
                    }

                }
            </script>
        </prop:Handler>
    </ext:ClientAction>
</prop:Actions>